<template>
  <div>
    <!-- 给属性绑定动态数据 v-bind或简写 :属性名 -->
    <img v-bind:src="img" alt="">
    <hr>
    <!-- v-bind简写 -->
    <img :src="img" alt="">
  </div>
</template>

<script>
export default {
  data() {
    return {
      img: 'http://www.mobiletrain.org/images/index/new_logo.png',
    };
  },
};
</script>

<style lang="scss">
</style>
